<% title "Tasks" %>

<table>
  <tr>
    <th>Title</th>
    <th>Started On</th>
    <th>Completed On</th>
    <th>Description</th>
    <th>Status Code</th>
    <th>Milestone</th>
  </tr>
  <% for task in @tasks %>
    <tr>
      <td><%=h task.title %></td>
      <td><%=h task.started_on %></td>
      <td><%=h task.completed_on %></td>
      <td><%=h task.description %></td>
      <td><%=h task.status_code %></td>
      <td><%=h task.milestone_id %></td>
      <td><%= link_to "Edit", edit_task_path(task) %></td>
      <td><%= link_to "Destroy", task, :confirm => 'Are you sure?', :method => :delete %></td>
    </tr>
  <% end %>
</table>

<p><%= link_to "New Task", new_task_path %></p>
